#ifndef MAINWINDOW_H_
#define MAINWINDOW_H_
#include "ui_mainwindow.h"
#include <QWidget>
#include <QStackedLayout>
#include "YouthManager.h"
#include "DeaconsWidget.h"

class MainWindow : public QMainWindow, private Ui::MainWindow
{
	Q_OBJECT
	
public:
	MainWindow(QWidget *parent=0);
	virtual ~MainWindow();

public slots:    
    void redisplayYouth();

private:
    YouthManagerPtr m_youth;
    YouthPtr        m_current;
    QString         m_activeFile;
    
    QWidget*        empty;
    DeaconsWidget *deaconwidget;
    QStackedLayout*  m_layout;
//    TeachersRequirements *teacherwidget;
//    PriestsRequirements *priestwidget;
//    RetiredRequirements *retiredwidget;
    
    void generateDeacons();
    void generateTeachers();
    void generatePriests();
    void generateRetired();
    
private slots:
    void youthSelectionChanged();
    void nameChanged();
    void print();
    void open();
    void saveas();
    void save();
};

#endif /*MAINWINDOW_H_*/
